Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@aws-lite/client
Advanced tools
aws-lite
is simple, extremely fast, extensible Node.js client for interacting with AWS services.(It's got good error reporting, too.)
You can think of it as a community-driven alternative to AWS's JavaScript SDK.
aws-lite
?aws-sdk
/ @aws-sdk/*
?aws-lite
@aws-lite/*
pluginsaws-lite
is developed and maintained by the folks at OpenJS Foundation Architect. We <3 AWS!
aws-lite
?aws-lite
is a simple, extremely fast, extensible Node.js client for interacting with AWS services.
(It's got good error reporting, too.)
You can think of it as a community-driven alternative to AWS's JavaScript SDK.
aws-sdk
/ @aws-sdk/*
?Amazon has historically done a great job of maintaining its SDKs. However, AWS has deprecated its widely-adopted v2 SDK; its v3 SDK relies on generated code, resulting in large dependencies, poor performance, awkward semantics, difficult to understand documentation, and errors without usable stack traces.
We rely on and believe in AWS, so we built aws-lite
to provide a simpler, faster, more stable position from which to work with AWS services in Node.js.
aws-lite
Install the client:
npm i @aws-lite/client
You can use the client as-is to quickly interact with AWS service APIs, or extend it with specific service plugins like so:
npm i @aws-lite/dynamodb
Generally, types are available as optional @aws-lite/*-types
packages, and can be added like so:
npm i -D @aws-lite/dynamodb-types
Learn more about aws-lite
types.
Now start making calls to AWS:
// Instantiate a client with the DynamoDB plugin
import awsLite from '@aws-lite/client'
const aws = await awsLite({ region: 'us-west-1', plugins: [ import('@aws-lite/dynamodb') ] })
// Easily interact with the AWS services your application relies on
await aws.DynamoDB.PutItem({
TableName: '$table-name',
Item: {
// AWS-lite automatically de/serializes DynamoDB JSON
pk: '$item-key',
data: {
ok: true,
hi: 'friends'
}
}
})
await aws.DynamoDB.GetItem({
TableName: '$table-name',
Key: { pk: '$item-key' }
})
// {
// Item: {
// pk: '$item-key',
// data: data: {
// ok: true,
// hi: 'friends'
// }
// }
// }
// Use the lower-level client to fire a GET request by specifying a `service` and `endpoint`
await aws({
service: 'lambda',
endpoint: '/2015-03-31/functions/$function-name/configuration',
})
// {
// FunctionName: '$function-name',
// Runtime: 'nodejs20.x',
// ...
// }
// POST JSON by adding a `payload` property
await aws({
service: 'lambda',
endpoint: '/2015-03-31/functions/$function-name/invocations',
payload: { ok: true },
})
Credential and general configuration options for aws-lite
Using aws-lite
to make requests and receiving responses
Guide and examples for using TypeScript with aws-lite
Docs and examples for the aws-lite
plugin API
Open, reproducible, real-world metrics for the performance of aws-lite
and other AWS SDKs
Open source contributor guidelines, methodology, and instructions
@aws-lite/*
pluginsFAQs
A simple, fast, extensible AWS client
We found that @aws-lite/client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.